<script setup>
import { onLaunch, onShow } from '@dcloudio/uni-app'
import { checkLogin } from '@/utils/util'

onLaunch(() => {
  console.log('App Launch')
  // 初始化检查登录状态
  // checkLogin()
})

onShow(() => {
  console.log('App Show')
})
</script>

<style lang="scss">

/* 全局样式 */
page {
  background-color: #f8f8f8;
  font-size: 28rpx;
  color: #333;
  height: 100%;
}

/* 解决H5端滚动条问题 */
::-webkit-scrollbar {
  display: none;
  width: 0 !important;
  height: 0 !important;
  -webkit-appearance: none;
  background: transparent;
}

/* 通用按钮样式 */
.primary-btn {
  background: $uni-color-primary;
  color: #fff;
  border-radius: 48rpx;
  height: 96rpx;
  line-height: 96rpx;
  font-size: 32rpx;
  text-align: center;
  
  &[disabled] {
    opacity: 0.6;
  }
}

/* 输入框样式 */
.input-style {
  height: 96rpx;
  padding: 0 32rpx;
  background: #fff;
  border-radius: 16rpx;
  font-size: 32rpx;
}
</style>
